﻿@model IEnumerable<Gfw.Web.Models.Account.CashQueryCmpModel>

@{
    Layout = null;
}

@using C.Mvc
@using MvcContrib.UI.Grid;


@using (Ajax.BeginForm("CashList", "User", null, Gfw.Web.Common.ViewHelper.AjaxGet))
{
    @Html.Grid(Model).Columns(
            column =>
                {
                    column.For(x => x.LoginName).Named("用户名");
                    column.For(x => x.BankUserName).Named("开户名");
                    column.For(x => x.BankName).Named("开户银行名称");
                    column.For(x => x.Money).Named("申请金额");
                    column.For(x => x.RequireDate).Named("申请时间");
                    column.For(x => x.Status).Named("状态");
                    column.Custom(@<text>
<a href="javascript:window.showModalDialog('CashDetails?userID=@item.UserID&applyDate=@item.RequireDate',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">详情</a> | 
<a href="javascript:window.showModalDialog('CashQuery?loginName=@item.LoginName&userID=@item.UserID',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">X币明细</a> | 
<a href="javascript:window.showModalDialog('EMoneyQuery?loginName=@item.LoginName&userID=@item.UserID',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">D币明细</a> | 
<a href="javascript:window.showModalDialog('StockDetails?loginName=@item.LoginName&userID=@item.UserID',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">G币明细</a> | 
<a href="javascript:window.showModalDialog('DynamicAwardDetails?loginName=@item.LoginName&userID=@item.UserID',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">动态奖金明细</a>
@if(item.Status.Contains("审核中"))
{
@: | @Html.ActionLink("审核", "CashCheck", new { loginName = @item.LoginName, userID=@item.UserID, applyDate=@item.RequireDate ,start = ViewBag.StartDate, end = ViewBag.EndDate })
@*<a href="javascript:window.showModalDialog('CashCheck?loginName=@item.LoginName&userID=@item.UserID&applyDate=@item.RequireDate',null,'dialogWidth=1000px;dialogHeight=700px;resizable=yes;');">审核</a>*@
}
</text>).Named("操作");
                }).Attributes(id => "mytable",cellpadding=>"0",cellspacing=>"0").Empty("没有相关信息");


 @Ajax.DataGridPager().Totals(ViewBag.TotalSize).PageIndex(ViewBag.PageIndex).PagePropertyName("page").Model(new { did = ViewBag.did }).AjaxOptions(Gfw.Web.Common.ViewHelper.AjaxGet);
}